wayland: Use correct enums in server_decoration_request_mode
authorDavid Edmundson <kde@davidedmundson.co.uk>
Thu, 28 Jun 2018 17:41:22 +0000 (18:41 +0100)
committerDavid Edmundson <kde@davidedmundson.co.uk>
Thu, 28 Jun 2018 17:51:12 +0000 (18:51 +0100)
The enum is duplicated in the spec for the manager and the decoration
object. We should be using the right ones. In practice they have the
same value, so this bug didn't cause any issues.

gdk/wayland/gdkwindow-wayland.c

index 0e2b66e6e8f5ef1efd0918c7c925976ca1059d87..3da3ac5b6847e2bf8d4bcd7dff6073fbbeb83940 100644 (file)
@@ -2106,10 +2106,10 @@ gdk_wayland_window_announce_decoration_mode (GdkWindow *window)
     {
       if (impl->using_csd)
         org_kde_kwin_server_decoration_request_mode (impl->display_server.server_decoration,
-                                                                                     ORG_KDE_KWIN_SERVER_DECORATION_MANAGER_MODE_CLIENT);
+                                                                                     ORG_KDE_KWIN_SERVER_DECORATION_MODE_CLIENT);
       else
         org_kde_kwin_server_decoration_request_mode (impl->display_server.server_decoration,
-                                                                                     ORG_KDE_KWIN_SERVER_DECORATION_MANAGER_MODE_SERVER);
+                                                                                     ORG_KDE_KWIN_SERVER_DECORATION_MODE_SERVER);
     }
 }